load("//bzl:cpp_library.bzl", "cpp_library")

package(default_visibility = ["//visibility:public"])

cpp_library(
    name = "async_fd_socket",
    srcs = ["AsyncFdSocket.cpp"],
    hdrs = ["AsyncFdSocket.h"],
    deps = [
        ":socket_fds",
        "//folly/io/async:async_socket",
        "@fmt",
    ],
)

cpp_library(
    name = "socket_fds",
    srcs = ["SocketFds.cpp"],
    hdrs = ["SocketFds.h"],
    deps = [
        "//folly:file",
        "@glog",
    ],
)
